import http from "@/utils/http.js";


export function addComment(data,parentId){
    return http({
        method:"POST",
        url:`/comments/addComment/${parentId}`,
        data
    })
}

export function getComments(courseId ){
    return http({
        method:"GET",
        url:"/comments/getComments?courseId="+courseId
    })
}